package com.kanqiubao.kq.fragment.ranking;

import com.kanqiubao.kq.R;
import com.kanqiubao.kq.adapter.main.MainZbListAdapter;
import com.kanqiubao.kq.fragment.SmartBaseRefreshFragment;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.LinearLayoutManager;

public class RankingListFragment extends SmartBaseRefreshFragment<String> {
    @Override
    protected int getLayoutId() {
        return R.layout.include_smart_recycler_refresh_layout;
    }

    @Override
    protected void initData() {
        List<String> ls = new ArrayList<>();
        ls.add("");
        ls.add("");
        ls.add("");
        ls.add("");
        ls.add("");
        mSuperBaseAdapter.addData(ls);
    }

    @Override
    protected void initView() {
        mSuperBaseAdapter = new MainZbListAdapter(R.layout.zb_ramking_list_item_layout);
        super.initView();
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
        mSmartRefreshLayout.setEnableLoadMore(false);
        mSmartRefreshLayout.setEnableRefresh(false);
    }
}
